<?php
    if(!isset($showitem) && isset($_GET['showitem']))
        $showitem = $_GET['showitem'];

    if($showitem == 'impressum') $footeritemimpressumclass = 'selected';
    elseif($showitem == 'terms') $footeritemtermsclass = 'selected';
    elseif($showitem == 'datasecurity') $footeritemdatasecurityclass = 'selected';
    elseif($showitem == 'sitemap') $footeritemsitemapclass = 'selected';
    elseif($showitem == 'feedback') $footeritemfeedbackclass = 'selected';
    elseif($showitem == 'twitter') $footeritemtwitterclass = 'selected';
?>
<div class="footertable">
    <table cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td>
                <?php echo '<a class="'.$footeritemimpressumclass.'" href="?showitem=impressum">'.$footeritemimpressum.'</a>'; ?>
            </td>
            <td>
                <?php echo '<a class="'.$footeritemtermsclass.'" href="?showitem=terms">'.$footeritemterms.'</a>'; ?>
            </td>
            <td>
                <?php echo '<a class="'.$footeritemdatasecurityclass.'" href="?showitem=datasecurity">'.$footeritemdatasecurity.'</a>'; ?>
            </td>
            <td>
                <?php echo '<a class="'.$footeritemsitemapclass.'" href="?showitem=sitemap">'.$footeritemsitemap.'</a>'; ?>
            </td>
            <td>
                <?php echo '<a class="'.$footeritemfeedbackclass.'" href="?showitem=feedback">'.$footeritemfeedback.'</a>'; ?>
            </td>
            <td>
                <?php echo '<a class="'.$footeritemtwitterclass.'" href="?showitem=twitter">'.$footeritemtwitter.'</a>'; ?>
            </td>
            <td class="fblikecell">
                <div class="fblikecontainer">
                    <fb:like href="http://www.myweddingbook.ch/test/index.php" width="280" show_faces="false"></fb:like>
                </div>
            </td>
        </tr>
    </table>
</div>
